# Tanım: X Pencere Sistemi cekirdegi
# URL: http://xorg.freedesktop.org
# Paketçi: milisarge
# Gerekler: xcb-util-keysyms libepoxy xcb-util-image xcb-util-renderutil xcb-util-wm xorg-mesa xorg-glu xorg-pixman xorg-libdmx xorg-libxres xorg-font xorg-xkeyboard-config 
# Grup: sistem

isim=xorg-server
surum=1.18.1
devir=1
kaynak=(http://www.x.org/releases/individual/xserver/$isim-$surum.tar.bz2
	http://www.linuxfromscratch.org/patches/downloads/xorg-server/$isim-$surum-add_prime_support-1.patch
	http://www.linuxfromscratch.org/patches/downloads/xorg-server/$isim-$surum-wayland_190-1.patch)

derle() {
cd $isim-$surum

patch -Np1 -i ../$isim-$surum-add_prime_support-1.patch
patch -Np1 -i ../$isim-$surum-wayland_190-1.patch

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--with-xkb-output=/var/lib/xkb \
--enable-glamor \
--with-fontrootdir=/usr/share/fonts \
--enable-install-setuid \
--disable-systemd-logind \
--enable-suid-wrapper
make
make DESTDIR=$PKG install
rm -rf $PKG/var

# glamor module part of xorg-glamor-egl
rm $PKG/usr/lib/xorg/modules/libglamoregl.{la,so}
}
